package com.voice.core.api.model;

public final class ApiResponse extends ApiHttpMessage {
    int code;
    String message;
    String contentType;
    Exception ex;

    public ApiResponse(int code) {
        this.code = code;
    }

    public ApiResponse(int errorCode, String message, Exception ex) {
        this.code = errorCode;
        this.message = message;
        this.ex = ex;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Exception getEx() {
        return this.ex;
    }

    public void setEx(Exception ex) {
        this.ex = ex;
    }

    public String getContentType() {
        return this.contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }


}

